package cn.ym.user.service.impl;

import cn.ym.user.domain.UserAddress;
import cn.ym.user.mapper.UserAddressMapper;
import cn.ym.user.service.IUserAddressService;
import cn.ym.basic.service.impl.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 业务实现类：订单地址
 */
@Service
public class UserAddressServiceImpl extends BaseServiceImpl<UserAddress> implements IUserAddressService {

    @Autowired
    private UserAddressMapper userAddressMapper;
    @Override
    public List<UserAddress> findByUserId(Long userId) {
        return userAddressMapper.findByUserId(userId);
    }
}
